

const getSearchFields = ({ menuCode, condition }) => {
    // 默认fields
    const defaultFields = [
        {
            name: "status",
            label: "状态",
            componenttype: "Select",
            useprops: {
                options: [
                    {
                        label: "启用",
                        value: "1"
                    },
                    {
                        label: "停用",
                        value: "0"
                    }
                ]
            }
        },
    ]
    const screenType2Fields = [
        {
            name: "insuredName",
            label: "经销店名称",

        },
    ]
    const carDealerPolicyFields = [
        {
            name: "policyNo",
            label: "保单号",

        },
    ]
    const carDealerClmFields = [
        {
            label: "报案号",
            name: "registNo",

        },
        {
            label: "保单号",
            name: "policyNo",

        },
    ]

    //加载查询条件
    switch (menuCode) {
        case "screenType2": return screenType2Fields;
        case "carDealerPolicy": return carDealerPolicyFields;
        case "carDealerClm": return carDealerClmFields;
        default: return defaultFields;
    }
}

export default getSearchFields;